package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Praise;
import java.util.List;
import java.util.Map;

public interface PraiseMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Praise entity);

    Praise selectByPrimaryKey(Long id);

    List<Praise> selectAll();

    int updateByPrimaryKey(Praise entity);

    List<Praise> getPraiseTravels(Long userId);

    List<Praise> getPraiseStrategyComment(Long userId);

    List<Praise> getPraiseFriendships(Long userId);

    Integer getPraiseTravelsNum(Long userId);

    Integer getPraiseStrategyCommentsNum(Long userId);

    Integer getPraiseFriendshipsNum(Long userId);

    void updatePraiseState(Long praiseId);

    void updateFriendshipPraiseState(Long praiseId);
}